﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MaintainCategories.aspx.cs" Inherits="MyHealthByDesign.Admin.MaintainCategories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Maintain Questionnaire Categories</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>Maintain Questionnaire Categories</h3>
    <p style="font-weight: bold;">
        Use the form below to make additions, changes, and deletions to questionnaire categories.
    </p>
    <br />
    <div style="height: 400px;">
        <div style="width: 215px; float: left;">
            <asp:ListBox ID="lbCategories" runat="server" SelectionMode=Single Rows=15 
                Width=200 OnSelectedIndexChanged="lbCategories_SelectedIndexChanged" 
                AutoPostBack="True"></asp:ListBox>
        </div>
        <div style="width: 50%; float: left; padding-left:3px;">
            <asp:Button ID="btnDelete" runat="server" Text="Delete Selected Category" 
                onclick="btnDelete_Click" OnClientClick="javascript:return confirm('Are you sure you want to delete the selected category ?')" /><br /><br />
            <asp:TextBox ID="tbCategoryName" MaxLength=50 Width=300px runat="server"></asp:TextBox><br />
            <asp:Button ID="btnAdd" runat="server" Text="Add Category Name" 
                onclick="btnAdd_Click" /><asp:Button ID="btnUpdate" runat="server" 
                Text="Update Category Name" onclick="btnUpdate_Click" />
        </div>
        <div style="width: 25%; float: left; padding-left:3px;">
            <asp:Label ID="lblErrors" runat="server" ForeColor="Red" Text=""></asp:Label>
        </div>
    </div>
    <div style="width: 100%;">
    </div>
    

</asp:Content>
